package fr.ece.ing4.si.montecarloapplication;

public class SetOfArguments {
	
	/* Arguments of the set */
	
	private String CallPutFlag = ""; // Indicate if the option is a call or a put
	private int S = 0; // Underlying asset actual price
	private int X = 0; // Strike price
	private double r = 0; // Basic interest rate
	private double T = 0; // Time remaining until the maturity of the option (in years)
	private double b = 0; // Detention costs rate of the option
	private double v = 0; // Volatility
	private int nSteps = 0;
	private int nSimulations = 0;
	
	
	/* Overloaded constructor */
	
	public SetOfArguments(String[] argumentsList) {
		
		this.CallPutFlag = argumentsList[0];
		this.S = Integer.parseInt(argumentsList[1]);
		this.X = Integer.parseInt(argumentsList[2]);
		this.r = Double.parseDouble(argumentsList[3]);
		this.T = Double.parseDouble(argumentsList[4]);
		this.b = Double.parseDouble(argumentsList[5]);
		this.v = Double.parseDouble(argumentsList[6]);
		this.nSteps = Integer.parseInt(argumentsList[7]);
		this.nSimulations = Integer.parseInt(argumentsList[8]);
		
	}


	public String getCallPutFlag() {
		return CallPutFlag;
	}
	
	public int getS() {
		return S;
	}
	
	public int getX() {
		return X;
	}
	
	public double getr() {
		return r;
	}
	
	public double getT() {
		return T;
	}
	
	public double getb() {
		return b;
	}
	
	public double getv() {
		return v;
	}
	
	public int getnSteps() {
		return nSteps;
	}
	
	public int getnSimulations() {
		return nSimulations;
	}

}
